package com.htthorizon.neo4j.service.impl;

import com.htthorizon.neo4j.entity.Model;
import com.htthorizon.neo4j.repository.ModelRepository;
import com.htthorizon.neo4j.service.ModelServiceNeo4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Brilliant
 */
@Service
public class ModelServiceNeo4jImpl implements ModelServiceNeo4j {

    @Autowired
    private ModelRepository modelRepository;

    @Override
    public List<Model> findByName(String name) {
        return modelRepository.findByName(name);
    }



}
